<%@ page language="java" import="com.yb.util.comm.RequestUtil" pageEncoding="utf-8"
	contentType="text/html; charset=utf-8"%>
<%@taglib uri="estateTag" prefix="estateTag" %>
<%
String path = request.getContextPath();
String name = RequestUtil.getParam(request, "name", "");
String bigCategory = RequestUtil.getParam(request, "bigCategory", "");
String categoryId = RequestUtil.getParam(request, "categoryId", "");
String typeId = RequestUtil.getParam(request, "typeId", "");
String brandId = RequestUtil.getParam(request, "brandId", "");
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>抢购产品设置</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" href="../resource/css/global.css" type="text/css"></link>
		<link rel="stylesheet" type="text/css" href="../resource/css/easyui/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="../resource/css/easyui/icon.css">
		<script type="text/javascript" src="../resource/js/jquery-1.4.2.js"></script>
		<script type="text/javascript" src="../resource/js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript"	src="../resource/js/easyui/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript" src="manageGoods.js"></script>
	    <link rel="stylesheet" href="../resource/css/whole.css" type="text/css"></link>
	</head>
  <script type="text/javascript">
	var name = '<%=name%>';
	var categoryId1 = '<%=bigCategory%>';
	var categoryId2 = '<%=categoryId%>';
	var typeId = '<%=typeId%>';
	if(typeId == 'undefined'){typeId = '';}
	var brandId = '<%=brandId%>';
	if(brandId == 'undefined'){brandId = '';}
	if(brandId!=''){
		categoryId1 ='';
    	categoryId2 ='';
		typeId ='';
	}else if(typeId!=''){
		categoryId1 ='';
   		categoryId2 ='';
		brandId ='';
	}else if(categoryId2!=''){
		categoryId1 ='';
		typeId ='';
		brandId ='';
	}else{
  		categoryId2 ='';
		typeId ='';
		brandId ='';
	}
</script>
	<body><estateTag:security></estateTag:security>
		<center><jsp:include page="../index/top.jsp"></jsp:include></center>
		<div style="width: 100%;margin-top: 10px;" align="center">
		<input id="menuCls" type="hidden" value="36">
			<table width="100%" class="layoutTab">
				<tr>
				<!-- <td width="20%" align="left" valign="top"><jsp:include page="../menu.jsp"></jsp:include></td> -->
					<td valign="top">
						<table border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td valign="top" align="left">
									<form name="form" method="post">
										<table width="100%" border="0" cellpadding="1" cellspacing="1">
											<tr>
												<td>
												 <div  class="searchhead2" ></div>
												     <div  class="searchcenter h25" >
													<div align="left"  style="width:735px;float: left">
														<div class="searchline">
														<nobr>商品名称：
														<input type="text" name="name" id="name" size="18" value="<%=name%>"/>
													    <imgs src="../resource/img/searchline.gif" align="middle"/>
														产品类别：
													    <select name="bigCategory" onchange="bigCategoryChange()"
															id="bigCategory">
															<option value="">
																请选择
															</option>
															<s:iterator value="catrows">
																<option value="<s:property value="id"/>">
																	<s:property value="name" />
																</option>
															</s:iterator>
														</select>
														<span id="smallCategory">
														<select name="categoryId" id="categoryId">
															<option value="">
																请选择
															</option>
														</select>
														</span>
														<span id="goodsType">
														<select name="typeId">
															<option value="">
																请选择
															</option>
														</select>
												    	</span>
												    	<span id="goods">
															<select name="brandId">
																<option value="">
																	请选择
																</option>
															</select>
														</span>
														<img src="../resource/img/searchline.gif" align="middle"/>
														 <a id="searchid" href="javascript:onSearch()"></a></nobr>
														</div>
														</div>
													 <div style="clear:both;"></div>
													</div>
													 <div  class="searchfloot2" ></div>
												</td>
											</tr>
											<tr>
												<td valign="top">
													<table id="messagegrid">
													</table>
												</td>
											</tr>
										</table>
									</form>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</div>
	<div style="margin-top: 10px;">
			<center>
			</center>
		</div>		
		<center> <iframe src="../index/footer.html" width="970" height="120" frameborder="0" scrolling="no"></iframe> </center>
<script type="text/javascript">
	$("#bigCategory").val('<%=bigCategory%>');
	$("#categoryId").val('<%=categoryId%>');
	$("#typeId").val('<%=typeId%>');
	$("#brandId").val('<%=brandId%>');
</script>
		</body>
</html>
